Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

Problem

PR #382 was merged but was accidentally reverted by commit 00e5b179 (🤖 Restore ReviewPanel and FileTree from good state) during the Tailwind migration. This PR re-applies those changes to the current Tailwind-based codebase.

Changes

Layout Restructuring

  • Search bar moved outside scrollable area - Always visible at top, not part of the scrolling content
  • Single scrollable container - Created one overflow-y-auto div containing both file tree and hunks
  • File tree on top in all viewports - No longer side-by-side on wide screens
  • No sticky behavior - File tree scrolls away naturally with content

Technical Implementation

  • Search bar: Fixed position at top with border-b
  • ScrollableContent: flex min-h-0 flex-1 flex-col overflow-y-auto
  • FileTree: First child with flex-[0_0_auto] (sizes to content, doesn't grow)
  • Hunks: Below file tree with flex-[0_0_auto] (sizes to content)

Before vs After

Before (reverted state):

  • File tree in sidebar (wide) or top section (narrow)
  • Two separate scrollable areas (tree + hunks)
  • File tree stayed visible when scrolling hunks

After (this PR):

  • File tree always at top, full width
  • Single scrollable area containing both
  • File tree scrolls away naturally

Related

Generated with cmux

The original PR #382 was accidentally lost during the Tailwind v4
migration (commit 7e7d5c71b79). This commit re-applies those changes
to the current Tailwind-based codebase.

Changes:
- Search bar moved outside scrollable area (always visible at top)
- Created single scrollable container for file tree + hunks
- File tree now at top in all viewports (not side-by-side)
- File tree no longer sticky - scrolls away naturally with content

Layout:
- Search bar: Fixed at top
- ScrollableContent: Single overflow-y-auto container
- FileTree: First child, sizes to content (flex-[0_0_auto])
- Hunks: Below file tree, sizes to content

Fixes: File tree remaining visible when scrolling through hunks
Added explicit instruction to never close PRs without user direction.
Agents should always force-push to existing branches instead.
@ammario ammario merged commit 3445162 into main Oct 23, 2025
15 checks passed
@ammario ammario deleted the review-fixes-reapply branch October 23, 2025 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants